package controllers

import (
	"XYZShell/mgotool/models"

	"github.com/astaxie/beego"
)

type MainController struct {
	beego.Controller
}

func (c *MainController) Get() {
	var mgotool *models.Mgotool
	mgotool = models.GetMgotool()
	c.Data["Version"] = mgotool.Version
	c.Data["GitVersion"] = mgotool.GitVersion
	c.Data["SysInfo"] = mgotool.SysInfo
	c.Data["DbNames"] = mgotool.DbNames()
	c.TplName = "index.html"
}
